
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<title>Cadastro de Veiculos</title>

</h:head>

<h:body>
	<h:form id="formveiculo">

<p:growl id="mensagemConfirmacao" />

		<p:wizard backLabel="Anterior" nextLabel="Proximo" flowListener="#{veiculoAction.onFlowProcess}">

			<p:tab id="personal" title="Pessoal">

				<ui:include src="/cadastroveiculos/dadosveiculo.xhtml" />

			</p:tab>
			

			<p:tab id="motorista" title="Dados do Motorista">

				<ui:include src="/cadastroveiculos/dadosmotorista.xhtml"/>


			</p:tab>

			

			<p:tab id="confirm" title="Confirmar">
				<p:panel header="Confirmação">

					<p:growl id="growl" sticky="true" showDetail="true" />

					<h:panelGrid id="confirmation" columns="4" cellspacing="4">
						<h:outputText value="Placa do Veiculo:" />
						<h:outputText styleClass="outputLabel"
							value="#{veiculoAction.veiculo.placaPolicial}" style="color:blue;" />

						<h:outputText value="Cpf do Motorista: " />
						<h:outputText styleClass="outputLabel"
							value="#{veiculoAction.funcionario.cpf}" style="color:blue;"/>

						<h:outputText value="Nome do Motorista: " />
						<h:outputText styleClass="outputLabel"
							value="#{veiculoAction.funcionario.nomePessoa}" style="color:blue;"/>

						<h:outputText value="Km: " />
						<h:outputText styleClass="outputLabel"
							value="#{veiculoAction.veiculo.km}" style="color:blue;"/>



						<h:outputText value="Data de Manutenção: " />
						<h:outputText styleClass="outputLabel"
							value="#{veiculoAction.veiculo.dataExecutada}" style="color:blue;" />

						
					</h:panelGrid>

					<p:commandButton id="salvar" value="Salvar" update="growl"
						actionListener="#{veiculoAction.salvarVeiculo}" />
					<p:message for="salvar" />

				</p:panel>
			</p:tab>

		</p:wizard>

	</h:form>
</h:body>

</html>

